package com.bidr.authorization.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

 /**
 * Title: AcGroupType
 * Description: Copyright: Copyright (c) 2023
 *
 * @author Sharp
 * @since 2023/05/09 13:24
 */

/**
 * 组类型
 */
@ApiModel(description = "组类型")
@Data
@TableName(value = "ac_group_type")
public class AcGroupType {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "")
    @Size(max = 50, message = "最大长度要小于 50")
    @NotBlank(message = "不能为空")
    private String id;

    @TableField(value = "`name`")
    @ApiModelProperty(value = "")
    @Size(max = 50, message = "最大长度要小于 50")
    @NotBlank(message = "不能为空")
    private String name;
}
